import request from "@/utils/request.js"

// 添加商会
export function addChambers(data) {
    return request({
        url: "/ruoyi-background/chambers",
        method: "POST",
        data: data
    })
}

// 商会待遇，商会会员
export function getTTreatment(data) {
    return request({
        url: "/system/treatment/getTTreatment",
        method: "GET",
        params: data
    })
}

// 获取地区商会
export function getAreaChambers(data) {
    return request({
        url: "/ruoyi-background/chambers/list",
        method: "GET",
        params: data
    })
}
// 获取地区商会
export function getChamber(data) {
    return request({
        url: "/ruoyi-background/chambers/getChamber",
        method: "GET",
        params: data
    })
}
// 获取地区商会类型
export function getChamberType(data) {
    return request({ 
        url: "/ruoyi-background/chambers/getType",
        method: "GET",
        params: data
    })
}
// 获取商会类型(各省商会重新获取的)
export function selectCofcChamberType(chambertypeIdenti) {
    return request({ 
        url: "/ruoyi-background/chamberstype/selectCofcChamberType",
        method: "GET",
        params:{
            chambertypeIdenti
        }
        
    })
}
//查看各省商会的标题(5级页面)
export function selectCofcChamberName(data) {
    return request({ 
        url: "/ruoyi-background/chambers/selectCofcChamberName",
        method: "GET",
        params:data
    })
}
//点击海外查看5级商会名称
export function selectNameByHaiwai(data) {
    return request({ 
        url: "/ruoyi-background/chambers/selectNameByHaiwai",
        method: "GET",
        params:data
    })
}
//点击国家级和世界华商
export function selectChamberNameByNation(data) {
    return request({ 
        url: "/ruoyi-background/chambers/selectChamberNameByNation",
        method: "GET",
        params:data
    })
}
